.PHONY: all
.DEFAULT: all

client_source = client.c ctrl_channel.c data_channel.c file.c link.c list.c logger.c message_queue.c
server_source = server.c ctrl_channel.c data_channel.c file.c link.c list.c logger.c message_queue.c


server: ${server_source}
	gcc -Werror -lpthread  ${server_source} -oserver
	
client: ${client_source}
	gcc -Werror  -lpthread  ${client_source} -oclient

all: server client 


clean:
	rm server
	rm client


